package w83a.w83aOperacionesPaso.w83aImpugnaciones;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import w83a.w83aBeans.W83aCentroTrabajoBean;

import es.ejie.frmk.presentacion.operacion.paso.Q70ActionPasoOP;
import es.ejie.frmk.presentacion.sesiondatos.Q70ContextoEJIE;

// TODO: Auto-generated Javadoc
/**
 * The Class W83bTablaAgrupacionesOP.java.
 *
 * @author Deusto Sistemas
 */
public class W83aCargarCentroTrabajoOPAction extends Q70ActionPasoOP{

	
	protected void processOP(Q70ContextoEJIE contexto, ActionErrors errores, ActionMapping mapping,
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		//Guardamos la accion en el contexto

		
		/*HashMap mapaComarca = new HashMap();
		mapaComarca.put("cterritorio",);
		mapaComarca.put("anio",request.getParameter("anio"));
		mapaComarca.put("num",request.getParameter("num"));*/
		W83aCentroTrabajoBean centro=new W83aCentroTrabajoBean();
		centro.setTerritorio(request.getParameter("cterritorio"));
		centro.setAnyoActa(request.getParameter("anio"));
		centro.setNumCentro(request.getParameter("num"));
		
		contexto.set("w83aCentroTrabajoBean",centro);
		//contexto.set("mapa",mapaComarca);
		
	}

	protected ActionForward processForward(Q70ContextoEJIE contexto, ActionErrors errors, ActionMapping mapping, 
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		
			return mapping.findForward("ok");
	}

}
